<?php
namespace app\admin\Validate;
use think\Validate;

class AdminUser extends Validate{
    protected $rule=[
        'name'=>'require',
        'password'=>'require',
        'code'=>'require|captcha'
    ];
    protected $message=[
        'name.require'=>"请输入用户名",
        'password.require'=>"请输入密码",
        'code.require'=>"请输入验证码",
        'code.captcha'=>"验证码错误"
    ];
}